import {Platform, ToastAndroid} from 'react-native';
import {showToast as wxShowToast} from './showModal/toast';

export const showToast = (option: any) => {
  if (option.icon === 'none' && Platform.OS === 'android') {
    ToastAndroid.show(option.title, ToastAndroid.SHORT);
  } else {
    return wxShowToast(option);
  }
};

export {showLoading, hideToast, hideLoading} from './showModal/toast';
export {showModal} from './showModal';
